package com.weixin.paleituo.fragment;

import android.content.Context;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.weixin.paleituo.R;
import com.weixin.paleituo.adapter.WuYeHistoryPaymentRecycleAdapter;
import com.weixin.paleituo.base.BaseFragment;
import com.weixin.paleituo.util.UIUtils;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;

/**
 * Author yichao
 * Time  2018/6/22 11:01
 * Dest  物业历史账单
 */

public class WuyeHistoryPaymentFragment extends BaseFragment {
@BindView(R.id.recycle_fragment_wuye_history_payment)
    RecyclerView mRecyclerView;

    @Override
    public View initView(Context context) {
        View contentView = UIUtils.inflate(context, R.layout.fragment_wuye_history_payment);


        return contentView;
    }

    @Override
    protected void initData() {
        super.initData();



        List<String> stringList=new ArrayList<>();
        for (int i=0;i<20;i++){
            stringList.add(""+i);
        }

        WuYeHistoryPaymentRecycleAdapter wuYeHistoryPaymentRecycleAdapter=new WuYeHistoryPaymentRecycleAdapter(mContext,stringList);
        mRecyclerView.setLayoutManager(new LinearLayoutManager(mContext));
        mRecyclerView.setItemAnimator(new DefaultItemAnimator());
        mRecyclerView.setAdapter(wuYeHistoryPaymentRecycleAdapter);

    }

}
